package com.petlab.action;

import javax.annotation.Resource;

import org.springframework.context.annotation.Scope;
import org.springframework.stereotype.Component;

import com.opensymphony.xwork2.ActionSupport;
import com.petlab.dao.Dao;

@Component("test")
@Scope("prototype")
public class TestAction extends ActionSupport {

	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;
	private Dao dao;

	public Dao getDao() {
		return dao;
	}

	@Resource
	public void setDao(Dao dao) {
		this.dao = dao;
	}

	public String execute() throws Exception {
		dao.test();
		return SUCCESS;
	}

}
